package book;

public class BookList {
    //组合
    Book[] books = new Book[10];//创建十本书
    private int currentSize = 3;//目前图书数量

    private int count = 10;//书架的容量

    public BookList() {
        //放入三本书
        books[0] = new Book("三国演义","罗贯中","小说",25.5);
        books[1] = new Book("西游记","吴承恩","小说",30.4);
        books[2] = new Book("红楼梦","曹雪芹","小说",80.99);
    }

    public int getCurrentSize() {
        return currentSize;
    }

    public void setCurrentSize(int currentSize) {
        this.currentSize = currentSize;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(int pos, Book books) {
        this.books[pos] = books;
    }

}
